import request from '@/utils/request'
import { AxiosPromise } from 'axios'

enum Api {
  list = '/report/pressureReport/list',
  export = '/report/deviceSupplier/export',
}
export interface PressureReportVO {
  createAt: number
  createBy: number
  createDept: number
  createTime: string
  id?: string
  name: string
  updateBy: number
  updateTime: string
}

export interface PressureRecordQuery extends PageQuery {
  dateTimeBegin:any
  dateTimeEnd:any
}

export interface PressureRecordForm {

}

// 获取列表
export const getPressureReporList = (data?: PressureRecordQuery): AxiosPromise<any> => {
  console.info(data)
  return request({
    url: Api.list,
    method: 'post',
    data,
  })
}

// 获取所有
export const exportDeviceSupplierAll = (): AxiosPromise<PressureReportVO[]> => {
  return request({
    url: Api.export,
    method: 'post',
  })
}


